home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / UTILITY / DO1002.ARJ / RENAME.SCR < prev    next >
Text File  |  1991-12-03  |  975b  |  23 lines

  1. .pg wi full clr cy
  2.     COMMAND NAME»gray«: »%t« RenameFile »ye«
  3.  
  4.     /RENAME {Filename} {NewName} [N]
  5. /cw
  6.     This command is the equivalent of the DOS »cy«REName»#« command.
  7.     Both the old file name »cy«{Filename}»#« and the new file name
  8.     »cy«{NewName}»#« are expanded if any variables are found.
  9.  
  10.     »ma«NOTE»gray«: »#«If »cy«{Filename}»#« and »cy«{NewName}»#« are in different sub-
  11.     directories on the same disk, this command will move the
  12.     file to the »cy«{NewName}»#« sub-directory. If the »cy«{NewName}»#« is on
  13.     a different disk, an error will occur.
  14. .pg clr
  15.     If the file is successfully renamed, »%t«DO»#« branches to the
  16.     "»ye«:RENAMEOK»#«" label. After an unsuccessful execution, »%t«DO»#«
  17.     branches to "»ye«:RENAMEERROR»#«".
  18.  
  19.     If the "»ye«N»#«" token is included, the command will »+re«NOT»#« branch to the
  20.     labels, but will continue on the next line of the script regardless
  21.     of the outcome.
  22. /ENDEXEC CLEAR
  23.